<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/WEB-INF/template/template.xhtml">
	<ui:define name="content">
		<div class="content">
			<f:view locale="#{language.locale}">
				<div class="loginTitle">
					<div class="loginHeader">
						<h:outputText value="#{msg.errorOccured}" />
					</div>
				</div>

				<center>
					<div class="createMessage">
						
							<br /><br /><br /><br /><br />
						
							<h:outputText value="#{msg.accoutInvalid}" rendered="#{errorMessageNumber == 1}" />
							<h:outputText value="#{msg.noLongerSupervisor}" rendered="#{errorMessageNumber == 2}" />
							<h:outputText value="#{msg.noRightsToViewRepository}" rendered="#{errorMessageNumber == 3}" />
							
							<br/>
							<br/>
							
							<h:form>
								<h:commandButton value="#{msg.logout}" styleClass="selectRepositoryButton" action="#{myLoginController.logout}"  rendered="#{errorMessageNumber == 1}"/>
								<h:commandButton value="Home" action="#{refresh.goToHome}" styleClass="selectRepositoryButton" rendered="#{errorMessageNumber == 2}"/>
								<h:commandButton value="#{msg.selectYourRepository}" styleClass="selectRepositoryButton" action="/selectRepository.xhtml" rendered="#{errorMessageNumber == 3}"/>
							</h:form>
					</div>
				</center>

			</f:view>
		</div>
	</ui:define>
</ui:composition>
</html>